import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('../views/HomeIndex.vue'),
  },
  {
    path: '/movie-list',
    name: 'movieList',
    component: () => import('../views/MovieList.vue')
  },
  {
    path: '/movie-detail',
    name: 'movieDetail',
    component: () => import('../views/MovieDetail.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/LoginPage.vue')
  },
  {
    path: '/register',
    component: () => import('../views/RegisterPage.vue')
  },
  {
    path: '/reset-password',
    component: () => import('../views/ResetPasswordView.vue')
  },
  {
    path:'/user-info',
    component: () => import('../views/UserInfo.vue')
  },
  {
    path: "/send-email",
    component: () => import('../views/SendEmail.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
